<?php


namespace App\Models;


class ProductSpecItem extends BaseModel
{
    protected $table = 'products_spec_item';

    public static function getItemBySpecId($spec_id)
    {
        $item = self::where('spec_id', $spec_id)
            ->select('id as spec_item_id','name as spec_item_name')
            ->get()
            ->toArray();
        return $item;
    }
}